package com;
import java.util.Scanner;
public abstract class sanjiaoxing implements Abnormal{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请给出三角形三边长");
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        judge j = new judge(a, b, c);

        if (j.chengli()) {
            System.out.println("是三角形");
            if (j.dengbian()) {
                System.out.println("是等边三角形");
            } else if(a+b>c){
                System.out.println("不是等边三角形");
            }
           else{
                System.out.println("抛出异常");
            }
        }
    }

}
